﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/MasterPage/User.Master"
    CodeBehind="Categories.aspx.vb" Inherits="GoodAnotApp.Categories" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style3
        {
            width: 300px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <%--For ads--%>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table style="border: 1px solid #808080; margin-top: 18px; margin-bottom: 0px; padding-top: 0px"
        width="100%" class="bordered-table">
        <tr>
            <td>
                <asp:Label ID="lblCategoryName" runat="server" Text="Label">Category Name</asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="LblTop5" runat="server" Text="Label">Top 5 in</asp:Label>&nbsp;
                <asp:Label ID="LblCategoryName1" runat="server" Text="Label">Category Name</asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <table style="border: 1px solid #808080; margin-top: 18px; margin-bottom: 0px; padding-top: 0px"
                    width="100%" class="bordered-table">
                    <tr>
                        <td rowspan="4" style="border:0px">
                            <asp:ImageButton ID="imageFront1" class="imageFrontPage" runat="server" Height="150px"
                                Width="150px" />
                            &nbsp;</td>
                        <td rowspan="4" class="style3" colspan="4" style="border:0px">
                            1.<asp:HyperLink ID="hlCompanyNameT1" runat="server">[hlCompanyNameT1]</asp:HyperLink>
                            <br />
                        </td>
                        <td width="33px" style="border:0px">
                            <asp:ImageButton ID="imageFront2" class="imageFrontPage" runat="server" Height="40px"
                                Width="40px" />
                        </td>
                        <td style="border:0px">
                            2.<asp:HyperLink ID="hlCompanyNameT2" runat="server">[hlCompanyNameT2]</asp:HyperLink>
                            <br></br>
                        </td>
                    </tr>
                    <tr>
                        <td style="border:0px" >
                            <asp:ImageButton ID="imageFront3" class="imageFrontPage" runat="server" Height="40px"
                                Width="40px" />
                        </td>
                        <td style="border:0px">
                            3.<asp:HyperLink ID="hlCompanyNameT3" runat="server">[hlCompanyNameT3]</asp:HyperLink>
                            <br></br>
                        </td>
                    </tr>
                    <tr>
                        <td style="border:0px">
                            <asp:ImageButton ID="imageFront4" class="imageFrontPage" runat="server" Height="40px"
                                Width="40px" />
                        </td>
                        <td style="border:0px">
                            4.<asp:HyperLink ID="hlCompanyNameT4" runat="server">[hlCompanyNameT4]</asp:HyperLink>
                            <br></br>
                        </td>
                    </tr>
                    <tr>
                        <td style="border:0px">
                            <asp:ImageButton ID="imageFront5" class="imageFrontPage" runat="server" Height="40px"
                                Width="40px" />
                        </td>
                        <td  style="border:0px">
                            5.<asp:HyperLink ID="hlCompanyNameT5" runat="server">[hlCompanyNameT5]</asp:HyperLink>
                            <br></br>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <%--Listview 1--%>
    <table style="border: 1px solid #808080; margin-top: 18px; margin-bottom: 0px; padding-top: 0px"
        width="100%" class="bordered-table" id="SubCategoryTable1">
        <tr>
            <td>
                <asp:Label ID="SubCategoryLabel1" runat="server" Visible="False"></asp:Label>
                <asp:HiddenField ID="hfSubCategory1" runat="server" />
            </td>
        </tr>
        <tr>
            <td style="border-top: 0px">
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:yijungoodAnotDBConnectionString %>"
                    SelectCommand="SELECT image.image_ID, business.name, outlet.name AS Expr1, outlet.outlet_ID FROM outlet INNER JOIN business ON outlet.business_ID = business.business_ID INNER JOIN image ON business.business_ID = image.business_ID WHERE (business.category = @category) ORDER BY outlet.date_created DESC">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="hfSubCategory1" Name="category" PropertyName="Value" />
                    </SelectParameters>
                </asp:SqlDataSource>
                <table style="border: 0px solid #808080; margin-top: 18px; margin-bottom: 0px; padding-top: 0px"
                    width="725px" class="bordered-table" id="SubCategoryOutlet">
                    <tr style="border-top: 0px">
                        <td style="border-top: 0px">
                            <asp:ListView ID="ListView1" runat="server" DataSourceID="SqlDataSource1" GroupItemCount="3"
                                Visible="False">
                                <EmptyDataTemplate>
                                    <table runat="server" style="">
                                        <tr>
                                            <td>
                                                No data was returned.
                                            </td>
                                        </tr>
                                    </table>
                                </EmptyDataTemplate>
                                <GroupTemplate>
                                    <tr id="itemPlaceholderContainer" runat="server">
                                        <td id="itemPlaceholder" runat="server" style="border-top: 0px">
                                        </td>
                                    </tr>
                                </GroupTemplate>
                                <ItemTemplate>
                                    <table style="border: 1px solid #808080; margin-top: 18px; margin-bottom: 0px; padding-top: 0px"
                                        width="200px" class="bordered-table">
                                        <tr>
                                            <td style="border-top: 0px">
                                                <asp:ImageButton ID="imageSubCategory" class="imageCategory" runat="server" Height="100px"
                                                    Width="100px" PostBackUrl='<%# string.concat("OutletReview.aspx?id=", Eval("outlet_ID")) %>'
                                                    ImageUrl='<%# string.concat("IHttpHandler.ashx?id=",Eval("image_ID"))%>' />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="border-top: 0px">
                                                <asp:HyperLink ID="hlSubCategory" runat="server" NavigateUrl='<%# string.concat("OutletReview.aspx?id=", Eval("outlet_ID")) %>'
                                                    Text='<%# string.concat(Eval("name") ,"-",Eval("Expr1"))%>' />
                                            </td>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                                <LayoutTemplate>
                                    <table runat="server">
                                        <tr runat="server">
                                            <td runat="server" style="border-top: 0px">
                                                <table id="groupPlaceholderContainer" runat="server" border="0" style="">
                                                    <tr id="groupPlaceholder" runat="server">
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr runat="server">
                                            <td runat="server" style="border-top: 0px">
                                                <asp:DataPager ID="DataPager1" runat="server" PageSize="12">
                                                    <Fields>
                                                        <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" ShowNextPageButton="False"
                                                            ShowPreviousPageButton="False" />
                                                        <asp:NumericPagerField />
                                                        <asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="True" ShowNextPageButton="False"
                                                            ShowPreviousPageButton="False" />
                                                    </Fields>
                                                </asp:DataPager>
                                            </td>
                                        </tr>
                                    </table>
                                </LayoutTemplate>
                            </asp:ListView>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <%--Listview 2--%>
    <table style="border: 1px solid #808080; margin-top: 18px; margin-left: 4px; margin-bottom: 0px;
        padding-top: 0px" width="725px" class="bordered-table" id="SubCategoryTable2">
        <tr>
            <td>
                <asp:Label ID="SubCategoryLabel2" runat="server" Visible="False"></asp:Label>
                <asp:HiddenField ID="hfSubCategory2" runat="server" />
            </td>
        </tr>
        <tr>
            <td style="border-top: 0px">
                <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:yijungoodAnotDBConnectionString %>"
                    SelectCommand="SELECT image.image_ID, business.name, outlet.name AS Expr1, outlet.outlet_ID FROM outlet INNER JOIN business ON outlet.business_ID = business.business_ID INNER JOIN image ON business.business_ID = image.business_ID WHERE (business.category = @category) ORDER BY outlet.date_created DESC">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="hfSubCategory2" Name="category" PropertyName="Value" />
                    </SelectParameters>
                </asp:SqlDataSource>
                <table style="border: 0px solid #808080; margin-top: 18px; margin-bottom: 0px; padding-top: 0px"
                    width="725px" class="bordered-table" id="Table1">
                    <tr style="border-top: 0px">
                        <td style="border-top: 0px">
                            <asp:ListView ID="ListView2" runat="server" DataSourceID="SqlDataSource2" GroupItemCount="3"
                                Visible="False">
                                <EmptyDataTemplate>
                                    <table id="Table2" runat="server" style="">
                                        <tr>
                                            <td>
                                                No data was returned.
                                            </td>
                                        </tr>
                                    </table>
                                </EmptyDataTemplate>
                                <GroupTemplate>
                                    <tr id="itemPlaceholderContainer" runat="server">
                                        <td id="itemPlaceholder" runat="server">
                                        </td>
                                    </tr>
                                </GroupTemplate>
                                <ItemTemplate>
                                    <table style="border: 1px solid #808080; margin-top: 18px; margin-bottom: 0px; padding-top: 0px"
                                        width="200px" class="bordered-table">
                                        <tr>
                                            <td style="border-top: 0px">
                                                <asp:ImageButton ID="imageSubCategory" class="imageCategory" runat="server" Height="100px"
                                                    Width="100px" PostBackUrl='<%# string.concat("OutletReview.aspx?id=", Eval("outlet_ID")) %>'
                                                    ImageUrl='<%# string.concat("IHttpHandler.ashx?id=",Eval("image_ID"))%>' />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="border-top: 0px">
                                                <asp:HyperLink ID="hlSubCategory" runat="server" NavigateUrl='<%# string.concat("OutletReview.aspx?id=", Eval("outlet_ID")) %>'
                                                    Text='<%# string.concat(Eval("name") ,"-",Eval("Expr1"))%>' />
                                            </td>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                                <LayoutTemplate>
                                    <table runat="server">
                                        <tr runat="server">
                                            <td runat="server" style="border-top: 0px">
                                                <table id="groupPlaceholderContainer" runat="server" border="0" style="">
                                                    <tr id="groupPlaceholder" runat="server">
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr runat="server">
                                            <td runat="server" style="border-top: 0px">
                                                <asp:DataPager ID="DataPager1" runat="server" PageSize="12">
                                                    <Fields>
                                                        <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" ShowNextPageButton="False"
                                                            ShowPreviousPageButton="False" />
                                                        <asp:NumericPagerField />
                                                        <asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="True" ShowNextPageButton="False"
                                                            ShowPreviousPageButton="False" />
                                                    </Fields>
                                                </asp:DataPager>
                                            </td>
                                        </tr>
                                    </table>
                                </LayoutTemplate>
                            </asp:ListView>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <%--Listview 3--%>
    <asp:Panel ID="Panel4" runat="server" Visible="False">
        <table style="border: 1px solid #808080; margin-top: 18px; margin-bottom: 0px; padding-top: 0px"
            width="750px" class="bordered-table" id="SubCategoryTable3">
            <tr>
                <td>
                    <asp:Label ID="SubCategoryLabel3" runat="server" Visible="False"></asp:Label>
                    <asp:HiddenField ID="hfSubCategory3" runat="server" />
                </td>
            </tr>
            <tr>
                <td style="border-top: 0px">
                    <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:yijungoodAnotDBConnectionString %>"
                        SelectCommand="SELECT image.image_ID, business.name, outlet.name AS Expr1, outlet.outlet_ID FROM outlet INNER JOIN business ON outlet.business_ID = business.business_ID INNER JOIN image ON business.business_ID = image.business_ID WHERE (business.category = @category) ORDER BY outlet.date_created DESC">
                        <SelectParameters>
                            <asp:ControlParameter ControlID="hfSubCategory3" Name="category" PropertyName="Value" />
                        </SelectParameters>
                    </asp:SqlDataSource>
                    <table style="border: 0px solid #808080; margin-top: 18px; margin-bottom: 0px; padding-top: 0px"
                        width="100%" class="bordered-table" id="Table3">
                        <tr style="border-top: 0px">
                            <td style="border-top: 0px">
                                <asp:ListView ID="ListView3" runat="server" DataSourceID="SqlDataSource3" GroupItemCount="3"
                                    Visible="False">
                                    <EmptyDataTemplate>
                                        <table id="Table2" runat="server" style="">
                                            <tr>
                                                <td>
                                                    No data was returned.
                                                </td>
                                            </tr>
                                        </table>
                                    </EmptyDataTemplate>
                                    <GroupTemplate>
                                        <tr id="itemPlaceholderContainer" runat="server">
                                            <td id="itemPlaceholder" runat="server">
                                            </td>
                                        </tr>
                                    </GroupTemplate>
                                    <ItemTemplate>
                                        <table style="border: 1px solid #808080; margin-top: 18px; margin-bottom: 0px; padding-top: 0px"
                                            width="200px" class="bordered-table">
                                            <tr>
                                                <td style="border-top: 0px">
                                                    <asp:ImageButton ID="imageSubCategory" class="imageCategory" runat="server" Height="100px"
                                                        Width="100px" PostBackUrl='<%# string.concat("OutletReview.aspx?id=", Eval("outlet_ID")) %>'
                                                        ImageUrl='<%# string.concat("IHttpHandler.ashx?id=",Eval("image_ID"))%>' />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="border-top: 0px">
                                                    <asp:HyperLink ID="hlSubCategory" runat="server" NavigateUrl='<%# string.concat("OutletReview.aspx?id=", Eval("outlet_ID")) %>'
                                                        Text='<%# string.concat(Eval("name") ,"-",Eval("Expr1"))%>' />
                                                </td>
                                            </tr>
                                        </table>
                                    </ItemTemplate>
                                    <LayoutTemplate>
                                        <table runat="server">
                                            <tr runat="server">
                                                <td runat="server" style="border-top: 0px">
                                                    <table id="groupPlaceholderContainer" runat="server" border="0" style="">
                                                        <tr id="groupPlaceholder" runat="server">
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr runat="server">
                                                <td runat="server" style="border-top: 0px">
                                                    <asp:DataPager ID="DataPager1" runat="server" PageSize="12">
                                                        <Fields>
                                                            <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" ShowNextPageButton="False"
                                                                ShowPreviousPageButton="False" />
                                                            <asp:NumericPagerField />
                                                            <asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="True" ShowNextPageButton="False"
                                                                ShowPreviousPageButton="False" />
                                                        </Fields>
                                                    </asp:DataPager>
                                                </td>
                                            </tr>
                                        </table>
                                    </LayoutTemplate>
                                </asp:ListView>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </asp:Panel>
    <%--Listview 4--%>
    <asp:Panel ID="Panel3" runat="server" Visible="True">
        <table style="border: 1px solid #808080; margin-top: 18px; margin-bottom: 0px; padding-top: 0px"
            width="750px" class="bordered-table" id="SubCategoryTable4">
            <tr>
                <td>
                    <asp:Label ID="SubCategoryLabel4" runat="server" Visible="False"></asp:Label>
                    <asp:HiddenField ID="hfSubCategory4" runat="server" />
                </td>
            </tr>
            <tr>
                <td style="border-top: 0px">
                    <asp:SqlDataSource ID="SqlDataSource4" runat="server" ConnectionString="<%$ ConnectionStrings:yijungoodAnotDBConnectionString %>"
                        SelectCommand="SELECT image.image_ID, business.name, outlet.name AS Expr1, outlet.outlet_ID FROM outlet INNER JOIN business ON outlet.business_ID = business.business_ID INNER JOIN image ON business.business_ID = image.business_ID WHERE (business.category = @category) ORDER BY outlet.date_created DESC">
                        <SelectParameters>
                            <asp:ControlParameter ControlID="hfSubCategory4" Name="category" PropertyName="Value" />
                        </SelectParameters>
                    </asp:SqlDataSource>
                    <table style="border: 0px solid #808080; margin-top: 18px; margin-bottom: 0px; padding-top: 0px"
                        width="100%" class="bordered-table" id="Table4">
                        <tr style="border-top: 0px">
                            <td style="border-top: 0px">
                                <asp:ListView ID="ListView4" runat="server" DataSourceID="SqlDataSource4" GroupItemCount="3"
                                    Visible="False">
                                    <EmptyDataTemplate>
                                        <table id="Table2" runat="server" style="">
                                            <tr>
                                                <td>
                                                    No data was returned.
                                                </td>
                                            </tr>
                                        </table>
                                    </EmptyDataTemplate>
                                    <GroupTemplate>
                                        <tr id="itemPlaceholderContainer" runat="server">
                                            <td id="itemPlaceholder" runat="server">
                                            </td>
                                        </tr>
                                    </GroupTemplate>
                                    <ItemTemplate>
                                        <table style="border: 1px solid #808080; margin-top: 18px; margin-bottom: 0px; padding-top: 0px"
                                            width="200px" class="bordered-table">
                                            <tr>
                                                <td style="border-top: 0px">
                                                    <asp:ImageButton ID="imageSubCategory" class="imageCategory" runat="server" Height="100px"
                                                        Width="100px" PostBackUrl='<%# string.concat("OutletReview.aspx?id=", Eval("outlet_ID")) %>'
                                                        ImageUrl='<%# string.concat("IHttpHandler.ashx?id=",Eval("image_ID"))%>' />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="border-top: 0px">
                                                    <asp:HyperLink ID="hlSubCategory" runat="server" NavigateUrl='<%# string.concat("OutletReview.aspx?id=", Eval("outlet_ID")) %>'
                                                        Text='<%# string.concat(Eval("name") ,"-",Eval("Expr1"))%>' />
                                                </td>
                                            </tr>
                                        </table>
                                    </ItemTemplate>
                                    <LayoutTemplate>
                                        <table runat="server">
                                            <tr runat="server">
                                                <td runat="server" style="border-top: 0px">
                                                    <table id="groupPlaceholderContainer" runat="server" border="0" style="">
                                                        <tr id="groupPlaceholder" runat="server">
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr runat="server">
                                                <td runat="server" style="border-top: 0px">
                                                    <asp:DataPager ID="DataPager1" runat="server" PageSize="12">
                                                        <Fields>
                                                            <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" ShowNextPageButton="False"
                                                                ShowPreviousPageButton="False" />
                                                            <asp:NumericPagerField />
                                                            <asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="True" ShowNextPageButton="False"
                                                                ShowPreviousPageButton="False" />
                                                        </Fields>
                                                    </asp:DataPager>
                                                </td>
                                            </tr>
                                        </table>
                                    </LayoutTemplate>
                                </asp:ListView>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </asp:Panel>
    <%--Listview 5--%>
    <asp:Panel ID="Panel2" runat="server">
        <table style="border: 1px solid #808080; margin-top: 18px; margin-bottom: 0px; padding-top: 0px"
            width="750px" class="bordered-table" id="SubCategoryTable5">
            <tr>
                <td>
                    <asp:Label ID="SubCategoryLabel5" runat="server" Visible="False"></asp:Label>
                    <asp:HiddenField ID="hfSubCategory5" runat="server" />
                </td>
            </tr>
            <tr>
                <td style="border-top: 0px">
                    <asp:SqlDataSource ID="SqlDataSource5" runat="server" ConnectionString="<%$ ConnectionStrings:yijungoodAnotDBConnectionString %>"
                        SelectCommand="SELECT image.image_ID, business.name, outlet.name AS Expr1, outlet.outlet_ID FROM outlet INNER JOIN business ON outlet.business_ID = business.business_ID INNER JOIN image ON business.business_ID = image.business_ID WHERE (business.category = @category) ORDER BY outlet.date_created DESC">
                        <SelectParameters>
                            <asp:ControlParameter ControlID="hfSubCategory5" Name="category" PropertyName="Value" />
                        </SelectParameters>
                    </asp:SqlDataSource>
                    <table style="border: 0px solid #808080; margin-top: 18px; margin-bottom: 0px; padding-top: 0px"
                        width="100%" class="bordered-table" id="Table5">
                        <tr style="border-top: 0px">
                            <td style="border-top: 0px">
                                <asp:ListView ID="ListView5" runat="server" DataSourceID="SqlDataSource5" GroupItemCount="3"
                                    Visible="False">
                                    <EmptyDataTemplate>
                                        <table id="Table2" runat="server" style="">
                                            <tr>
                                                <td>
                                                    No data was returned.
                                                </td>
                                            </tr>
                                        </table>
                                    </EmptyDataTemplate>
                                    <GroupTemplate>
                                        <tr id="itemPlaceholderContainer" runat="server">
                                            <td id="itemPlaceholder" runat="server">
                                            </td>
                                        </tr>
                                    </GroupTemplate>
                                    <ItemTemplate>
                                        <table style="border: 1px solid #808080; margin-top: 18px; margin-bottom: 0px; padding-top: 0px"
                                            width="200px" class="bordered-table">
                                            <tr>
                                                <td style="border-top: 0px">
                                                    <asp:ImageButton ID="imageSubCategory" class="imageCategory" runat="server" Height="100px"
                                                        Width="100px" PostBackUrl='<%# string.concat("OutletReview.aspx?id=", Eval("outlet_ID")) %>'
                                                        ImageUrl='<%# string.concat("IHttpHandler.ashx?id=",Eval("image_ID"))%>' />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="border-top: 0px">
                                                    <asp:HyperLink ID="hlSubCategory" runat="server" NavigateUrl='<%# string.concat("OutletReview.aspx?id=", Eval("outlet_ID")) %>'
                                                        Text='<%# string.concat(Eval("name") ,"-",Eval("Expr1"))%>' />
                                                </td>
                                            </tr>
                                        </table>
                                    </ItemTemplate>
                                    <LayoutTemplate>
                                        <table runat="server">
                                            <tr runat="server">
                                                <td runat="server" style="border-top: 0px">
                                                    <table id="groupPlaceholderContainer" runat="server" border="0" style="">
                                                        <tr id="groupPlaceholder" runat="server">
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr runat="server">
                                                <td runat="server" style="border-top: 0px">
                                                    <asp:DataPager ID="DataPager1" runat="server" PageSize="12">
                                                        <Fields>
                                                            <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" ShowNextPageButton="False"
                                                                ShowPreviousPageButton="False" />
                                                            <asp:NumericPagerField />
                                                            <asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="True" ShowNextPageButton="False"
                                                                ShowPreviousPageButton="False" />
                                                        </Fields>
                                                    </asp:DataPager>
                                                </td>
                                            </tr>
                                        </table>
                                    </LayoutTemplate>
                                </asp:ListView>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </asp:Panel>
    <%--Listview 6--%>
    <asp:Panel ID="Panel1" runat="server">
    <table style="border: 1px solid #808080; margin-top: 18px; margin-bottom: 0px; padding-top: 0px"
        width="750px" class="bordered-table" id="SubCategoryTable6">
        <tr>
            <td>
                <asp:Label ID="SubCategoryLabel6" runat="server" Visible="False"></asp:Label>
                <asp:HiddenField ID="hfSubCategory6" runat="server" />
            </td>
        </tr>
        <tr>
            <td style="border-top: 0px">
                <asp:SqlDataSource ID="SqlDataSource6" runat="server" ConnectionString="<%$ ConnectionStrings:yijungoodAnotDBConnectionString %>"
                    SelectCommand="SELECT image.image_ID, business.name, outlet.name AS Expr1, outlet.outlet_ID FROM outlet INNER JOIN business ON outlet.business_ID = business.business_ID INNER JOIN image ON business.business_ID = image.business_ID WHERE (business.category = @category) ORDER BY outlet.date_created DESC">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="hfSubCategory6" Name="category" PropertyName="Value" />
                    </SelectParameters>
                </asp:SqlDataSource>
                <table style="border: 0px solid #808080; margin-top: 18px; margin-bottom: 0px; padding-top: 0px"
                    width="725px" class="bordered-table" id="Table6">
                    <tr style="border-top: 0px">
                        <td style="border-top: 0px">
                            <asp:ListView ID="ListView6" runat="server" DataSourceID="SqlDataSource6" GroupItemCount="3"
                                Visible="False">
                                <EmptyDataTemplate>
                                    <table id="Table2" runat="server" style="">
                                        <tr>
                                            <td>
                                                No data was returned.
                                            </td>
                                        </tr>
                                    </table>
                                </EmptyDataTemplate>
                                <GroupTemplate>
                                    <tr id="itemPlaceholderContainer" runat="server">
                                        <td id="itemPlaceholder" runat="server">
                                        </td>
                                    </tr>
                                </GroupTemplate>
                                <ItemTemplate>
                                    <table style="border: 1px solid #808080; margin-top: 18px; margin-bottom: 0px; padding-top: 0px"
                                        width="200px" class="bordered-table">
                                        <tr>
                                            <td style="border-top: 0px">
                                                <asp:ImageButton ID="imageSubCategory" class="imageCategory" runat="server" Height="100px"
                                                    Width="100px" PostBackUrl='<%# string.concat("OutletReview.aspx?id=", Eval("outlet_ID")) %>'
                                                    ImageUrl='<%# string.concat("IHttpHandler.ashx?id=",Eval("image_ID"))%>' />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="border-top: 0px">
                                                <asp:HyperLink ID="hlSubCategory" runat="server" NavigateUrl='<%# string.concat("OutletReview.aspx?id=", Eval("outlet_ID")) %>'
                                                    Text='<%# string.concat(Eval("name") ,"-",Eval("Expr1"))%>' />
                                            </td>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                                <LayoutTemplate>
                                    <table runat="server">
                                        <tr runat="server">
                                            <td runat="server" style="border-top: 0px">
                                                <table id="groupPlaceholderContainer" runat="server" border="0" style="">
                                                    <tr id="groupPlaceholder" runat="server">
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr runat="server">
                                            <td runat="server" style="border-top: 0px">
                                                <asp:DataPager ID="DataPager1" runat="server" PageSize="12">
                                                    <Fields>
                                                        <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" ShowNextPageButton="False"
                                                            ShowPreviousPageButton="False" />
                                                        <asp:NumericPagerField />
                                                        <asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="True" ShowNextPageButton="False"
                                                            ShowPreviousPageButton="False" />
                                                    </Fields>
                                                </asp:DataPager>
                                            </td>
                                        </tr>
                                    </table>
                                </LayoutTemplate>
                            </asp:ListView>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </asp:Panel>
    
    </br> </br> </br> </br> </br> </br> </br>
</asp:Content>
